//
//  BVShopsLeftCategoryDetail.m
//  BuyVegetables1
//
//  Created by 叶思超 on 15/10/21.
//  Copyright (c) 2015年 叶思超. All rights reserved.
//

#import "BVShopsLeftCategoryDetail.h"
#import "MJExtension.h"

@implementation BVShopsLeftCategoryDetail
- (NSDictionary *)replacedKeyFromPropertyName {
    return @{@"ID" : @"id"};
}

- (instancetype)initWithDict:(NSDictionary *)collecDict{
    self = [super init];
    if (self) {
        self.ID = collecDict[@"id"];
        self.pic_name = collecDict[@"pic_name"];
        self.title = collecDict[@"title"];
        self.poundsunit = collecDict[@"poundsunit"];
        self.each_bag_money = collecDict[@"each_bag_money"];
        self.each_bag_unit = collecDict[@"each_bag_unit"];
               
    }
    return self;
}

// 归档协议
MJCodingImplementation

- (BOOL)isEqual:(BVShopsLeftCategoryDetail *)other {
    return [self.ID isEqual:other.ID];
}
@end
